package com.xgk.boot.module.core.framework.token.config;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import java.time.Duration;

@ConfigurationProperties(prefix = "elm.token")
@Validated
@Data
public class TokenProperties {

    /**
     * token临期判断标准
     * */
    private Duration nearExpireTime=Duration.ofMinutes(10);
    /**
     * token加密的key
     */
    private String secretKey=null;

    /**
     * token黑名单保存时长
     * */
    private Duration blackTokenExpireTime=Duration.ofMinutes(30);

}
